<?php

declare(strict_types=1);
/**
 * This file is part of MoChat.
 * @link     https://mo.chat
 * @document https://mochat.wiki
 * @contact  group@mo.chat
 * @license  https://github.com/mochat-cloud/mochat/blob/master/LICENSE
 */
namespace MoChat\App\WorkContact\Job;

use Hyperf\AsyncQueue\Job;
use MoChat\App\WorkContact\Logic\SyncMultipleContactLogic;

/**
 * 根据员工&多个客户wxid同步多个客户.
 */
class SyncMultipleContactJob extends Job
{
    /**
     * @var array
     */
    public $params;

    public function __construct(array $params)
    {
        $this->params = $params;
    }

    public function handle()
    {
        $corpId = (int) $this->params['corpId'];
        $employeeId = (int) $this->params['employeeId'];

        $syncMultipleContactLogic = make(SyncMultipleContactLogic::class);
        $syncMultipleContactLogic->handle($corpId, $employeeId);
    }
}
